package com.adhere.common.exception;

import com.adhere.common.utils.ObjectUtils;

/**
 * 未能通过的角色认证异常
 *
 * @author WT
 */
public class NotRoleException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    public NotRoleException(String role) {
        super(role);
    }

    public NotRoleException(String[] roles) {
        super(ObjectUtils.stringArrayToString(roles, ","));
    }
}
